<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/student/search" method="post">
    <label>Name:</label>
    <input type="text" name="name">
    <label>Age:</label>

    <input type="text" name="age">

    <label>Tel:</label>

    <input type="text" name="tel">
    <input type="submit" value="Search">
</form>
<div>
    <a href="/student/create.html">Create</a>
</div>
<table border="1">
        <tr>
            <td>ID</td>
            <td>Name</td>
            <td>Age</td>

            <td>Tel</td>
            <td>Action</td>
        </tr>
        <tr th:each="student: ${studentList}">
            <td th:text="${student.id}"></td>
            <td th:text="${student.name}"></td>
            <td th:text="${student.age}"></td>

            <td th:text="${student.tel}"></td>
            <td>
                <a th:href="@{/student/edit/{id}(id=${student.id})}">Edit</a>
                <a th:href="@{/student/delete/{id}(id=${student.id})}">Delete</a>
            </td>
        </tr>
    </table>

</body>
</html>